
const express = require('express')

const request = require('superagent')

const app = express()

const http = require('http')

const port = 6066

const itzhost = 'https://www.itouzi.com'

const getExpireNotice = '/about/ajax/getExpireNotice'

app.use('/static',express.static('./public'))

app.use('/static',express.static('./views'))

app.get('/about/ajax/getWebNotice',(req,res)=> {
	console.log(itzhost+getExpireNotice);
	request.get(itzhost+getExpireNotice)
		.set('Content-Type', 'application/json;charset=UTF-8')
		.query(req.query)
		.end((err,response)=>{
			if(err) {
				console.log(err)
			}else {
				console.log(response);
			}
		})
	
	
})


app.listen( port ,()=>{
	console.log('server is running')
})